-- GENERATED SPELL FOR [Blacksmith Goodman] --


function spell0_27234(pUnit, Event) --@Crush Armor,n/a--
pUnit:FullCastSpellOnTarget(33661,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27234', 30263, 1)
end

function spell1_27234(pUnit, Event) --@Skull Crack,n/a--
pUnit:FullCastSpellOnTarget(15621,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27234', 2334, 1)
end

function Sorts_27234(pUnit, Event)
local choix_sorts_27234 = math.random(0, 1)
if choix_sorts_27234 == 0 then
pUnit:RegisterEvent('spell0_27234', 1, 1)
end
if choix_sorts_27234 == 1 then
pUnit:RegisterEvent('spell1_27234', 1, 1)
end
end

function mob27234_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27234', math.random(1500, 3000), 1)
end

function mob27234_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27234_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27234_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27234, 1, 'mob27234_Action')
RegisterUnitEvent(27234, 2, 'mob27234_Leave')
RegisterUnitEvent(27234, 3, 'mob27234_Kill')
RegisterUnitEvent(27234, 4, 'mob27234_Die')
